package com.fanghaoran.entity;

/**
 * @Author: win11
 * @Date: 2023/03/30/15:17
 * @Description: 生词类
 */
public class NoteWord {
    private int id;
    private int userId;
    private String word;

    public NoteWord() {
    }

    public NoteWord(int id, int userId, String word) {
        this.id = id;
        this.userId = userId;
        this.word = word;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id 生词id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userId
     */
    public int getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId 用户id
     */
    public void setUserId(int userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return word
     */
    public String getWord() {
        return word;
    }

    /**
     * 设置
     * @param word 单词
     */
    public void setWord(String word) {
        this.word = word;
    }

    @Override
    public String toString() {
        return "NoteWord{id = " + id + ", userId = " + userId + ", word = " + word + "}";
    }
}
